package com.twu.biblioteca;

import java.io.OutputStream;
import java.io.PrintStream;


/**
 * Created with IntelliJ IDEA.
 * User: thoughtworker
 * Date: 10/8/13
 * Time: 1:10 PM
 * To change this template use File | Settings | File Templates.
 */
public class FakePrintStream extends PrintStream{

    public String getPrinted() {
        return printed;
    }

    String printed;

    public FakePrintStream(OutputStream out){
        super(out);

    }

    public void println(String str){
        super.println(str);
        printed = str;
    }
}
